package com.ns.basic.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ns.basic.server.entry.ServerMenuEntry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 服务模块数据层接口
 *
 * @author lw
 */
@Mapper
public interface ServerMenuEntryMapper extends BaseMapper<ServerMenuEntry> {
    /**
     * 查询菜单
     *
     * @param id 服务id
     * @return List
     */
    List<ServerMenuEntry> selectBySid(@Param("id") Long id);

    /**
     * 删除服务菜单
     *
     * @param id 服务id
     * @return List
     */
    void deleteBySid(@Param("id") Long id);
}
